import React, { useRef, useLayoutEffect, useEffect, useState, FC } from "react";
import "./style.scss";
import Game from "./game"
const GreedySnake: FC = () => {
    useEffect(() => {
        const game = new Game();
        game.start();
    }, [])
    return <div className="GreedySnake-page">

        <canvas id="canvas" style={{
            width: "390px",
            height: "844px"
        }}></canvas>
    </div>
}
export default GreedySnake;